//logs.js
var app = getApp();

Page({
  data: {
    logs: []
  },
  onLoad: function () {
  },
  /**
   * 点击扫描之后跳转到检疫页面
   */
  
  checkPlague : function(){
    let data = {
       livestockId: app.globalData.liv_id,
    }
    app.netRequest({
      url: '/liv/daily/QueryCheckPlague',
      data: data,
      success: function(res){
        if(res.code == 0){
          console.log(res.data.livDailies)
          console.log(res.data.livLivestock)
          wx.navigateTo({
            url: '../checkPlague/checkPlague?livDailies=' + JSON.stringify(res.data.livDailies) + '&livLivestock=' + JSON.stringify(res.data.livLivestock)
          })
        }else{
          wx.hideLoading();
          wx.showModal({
            title: '提示',
            content: '跳转失败！'
          })
          return;
        }
      }
    })
    return
    }
})
